package org.jet.emall.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-04-05 11:09
 */
@Configuration
@MapperScan({"org.jet.emall.rbac.mapper","org.jet.emall.prod.mapper","org.jet.emall.prod.custom.dao"})
public class MybatisPlusConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }
}
